package com.vincent.vo;


import com.vincent.common.constant.RegValidatePattern;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;


/**
 * 忘记密码使用的接收对象
 */
public class ForgetPwdVo {

    @NotNull(message = "{validate.username.null.error}")
    @Pattern(regexp = RegValidatePattern.USERNAME,message = "{validate.username.reg.error}")
    private String userName;

    @NotNull(message = "{validate.email.null.error}")
    @Pattern(regexp = RegValidatePattern.EMAIL,message = "{validate.email.reg.error}")
    private String email;

    @NotNull(message = "{validate.authcode.null.error}")
    @Pattern(regexp = RegValidatePattern.AUTHCODE,message = "{validate.authcode.reg.error}")
    private String authcode;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAuthcode() {
        return authcode;
    }

    public void setAuthcode(String authcode) {
        this.authcode = authcode;
    }

}
